package Professor;

import java.awt.Component;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import java.awt.Insets;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;

import javax.swing.JButton;
import javax.swing.JPanel;
import javax.swing.JLabel;
import javax.swing.JPopupMenu;
import javax.swing.JTextField;
import javax.swing.border.EmptyBorder;

public class GradeEncapsulation extends JPanel{
	
	private JTextField textField;
	private JTextField textField_1;
	private JTextField textField_2;
	private JTextField textField_3;
	private JTextField textField_4;
	private JTextField textField_5;
	private JTextField textField_6;
	private JTextField textField_7;	
	
	public GradeEncapsulation() {
	
	
	GridBagLayout gbl_contentPane = new GridBagLayout();
	gbl_contentPane.columnWidths = new int[]{0, 0, 0, 0, 0};
	gbl_contentPane.rowHeights = new int[]{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0};
	gbl_contentPane.columnWeights = new double[]{0.0, 0.0, 0.0, 0.0, Double.MIN_VALUE};
	gbl_contentPane.rowWeights = new double[]{0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, Double.MIN_VALUE};
	setLayout(gbl_contentPane);
	
	JLabel lblNewLabel = new JLabel("성적 등록");
	GridBagConstraints gbc_lblNewLabel = new GridBagConstraints();
	gbc_lblNewLabel.insets = new Insets(0, 0, 5, 5);
	gbc_lblNewLabel.gridx = 1;
	gbc_lblNewLabel.gridy = 0;
	add(lblNewLabel, gbc_lblNewLabel);
	
	JLabel lblNewLabel_1 = new JLabel("학생 이름 :");
	GridBagConstraints gbc_lblNewLabel_1 = new GridBagConstraints();
	gbc_lblNewLabel_1.anchor = GridBagConstraints.EAST;
	gbc_lblNewLabel_1.insets = new Insets(0, 0, 5, 5);
	gbc_lblNewLabel_1.gridx = 0;
	gbc_lblNewLabel_1.gridy = 1;
	add(lblNewLabel_1, gbc_lblNewLabel_1);
	
	textField = new JTextField();
	GridBagConstraints gbc_textField = new GridBagConstraints();
	gbc_textField.insets = new Insets(0, 0, 5, 5);
	gbc_textField.fill = GridBagConstraints.HORIZONTAL;
	gbc_textField.gridx = 1;
	gbc_textField.gridy = 1;
	add(textField, gbc_textField);
	textField.setColumns(10);
	
	JLabel lblNewLabel_8 = new JLabel("학생 학번 :");
	GridBagConstraints gbc_lblNewLabel_8 = new GridBagConstraints();
	gbc_lblNewLabel_8.anchor = GridBagConstraints.EAST;
	gbc_lblNewLabel_8.insets = new Insets(0, 0, 5, 5);
	gbc_lblNewLabel_8.gridx = 0;
	gbc_lblNewLabel_8.gridy = 2;
	add(lblNewLabel_8, gbc_lblNewLabel_8);
	
	textField_1 = new JTextField();
	GridBagConstraints gbc_textField_1 = new GridBagConstraints();
	gbc_textField_1.insets = new Insets(0, 0, 5, 5);
	gbc_textField_1.fill = GridBagConstraints.HORIZONTAL;
	gbc_textField_1.gridx = 1;
	gbc_textField_1.gridy = 2;
	add(textField_1, gbc_textField_1);
	textField_1.setColumns(10);
	
	JLabel lblNewLabel_2 = new JLabel("획득 점수 :");
	GridBagConstraints gbc_lblNewLabel_2 = new GridBagConstraints();
	gbc_lblNewLabel_2.anchor = GridBagConstraints.EAST;
	gbc_lblNewLabel_2.insets = new Insets(0, 0, 5, 5);
	gbc_lblNewLabel_2.gridx = 0;
	gbc_lblNewLabel_2.gridy = 3;
	add(lblNewLabel_2, gbc_lblNewLabel_2);
	
	textField_2 = new JTextField();
	GridBagConstraints gbc_textField_2 = new GridBagConstraints();
	gbc_textField_2.insets = new Insets(0, 0, 5, 5);
	gbc_textField_2.fill = GridBagConstraints.HORIZONTAL;
	gbc_textField_2.gridx = 1;
	gbc_textField_2.gridy = 3;
	add(textField_2, gbc_textField_2);
	textField_2.setColumns(10);
	
	JLabel lblNewLabel_3 = new JLabel("평점 변환 :");
	GridBagConstraints gbc_lblNewLabel_3 = new GridBagConstraints();
	gbc_lblNewLabel_3.anchor = GridBagConstraints.EAST;
	gbc_lblNewLabel_3.insets = new Insets(0, 0, 5, 5);
	gbc_lblNewLabel_3.gridx = 0;
	gbc_lblNewLabel_3.gridy = 4;
	add(lblNewLabel_3, gbc_lblNewLabel_3);
	
	textField_3 = new JTextField();
	GridBagConstraints gbc_textField_3 = new GridBagConstraints();
	gbc_textField_3.insets = new Insets(0, 0, 5, 5);
	gbc_textField_3.fill = GridBagConstraints.HORIZONTAL;
	gbc_textField_3.gridx = 1;
	gbc_textField_3.gridy = 4;
	add(textField_3, gbc_textField_3);
	textField_3.setColumns(10);
	
	JLabel lblNewLabel_7 = new JLabel("획득 학점 :");
	GridBagConstraints gbc_lblNewLabel_7 = new GridBagConstraints();
	gbc_lblNewLabel_7.anchor = GridBagConstraints.EAST;
	gbc_lblNewLabel_7.insets = new Insets(0, 0, 5, 5);
	gbc_lblNewLabel_7.gridx = 0;
	gbc_lblNewLabel_7.gridy = 5;
	add(lblNewLabel_7, gbc_lblNewLabel_7);
	
	textField_4 = new JTextField();
	GridBagConstraints gbc_textField_4 = new GridBagConstraints();
	gbc_textField_4.insets = new Insets(0, 0, 5, 5);
	gbc_textField_4.fill = GridBagConstraints.HORIZONTAL;
	gbc_textField_4.gridx = 1;
	gbc_textField_4.gridy = 5;
	add(textField_4, gbc_textField_4);
	textField_4.setColumns(10);
	
	JLabel lblNewLabel_6 = new JLabel("과목 명 :");
	GridBagConstraints gbc_lblNewLabel_6 = new GridBagConstraints();
	gbc_lblNewLabel_6.anchor = GridBagConstraints.EAST;
	gbc_lblNewLabel_6.insets = new Insets(0, 0, 5, 5);
	gbc_lblNewLabel_6.gridx = 0;
	gbc_lblNewLabel_6.gridy = 6;
	add(lblNewLabel_6, gbc_lblNewLabel_6);
	
	textField_5 = new JTextField();
	GridBagConstraints gbc_textField_5 = new GridBagConstraints();
	gbc_textField_5.insets = new Insets(0, 0, 5, 5);
	gbc_textField_5.fill = GridBagConstraints.HORIZONTAL;
	gbc_textField_5.gridx = 1;
	gbc_textField_5.gridy = 6;
	add(textField_5, gbc_textField_5);
	textField_5.setColumns(10);
	
	JLabel lblNewLabel_5 = new JLabel("학과 명 :");
	GridBagConstraints gbc_lblNewLabel_5 = new GridBagConstraints();
	gbc_lblNewLabel_5.anchor = GridBagConstraints.EAST;
	gbc_lblNewLabel_5.insets = new Insets(0, 0, 5, 5);
	gbc_lblNewLabel_5.gridx = 0;
	gbc_lblNewLabel_5.gridy = 7;
	add(lblNewLabel_5, gbc_lblNewLabel_5);
	
	textField_6 = new JTextField();
	GridBagConstraints gbc_textField_6 = new GridBagConstraints();
	gbc_textField_6.insets = new Insets(0, 0, 5, 5);
	gbc_textField_6.fill = GridBagConstraints.HORIZONTAL;
	gbc_textField_6.gridx = 1;
	gbc_textField_6.gridy = 7;
	add(textField_6, gbc_textField_6);
	textField_6.setColumns(10);
	
	JLabel lblNewLabel_4 = new JLabel("담당 교수 :");
	GridBagConstraints gbc_lblNewLabel_4 = new GridBagConstraints();
	gbc_lblNewLabel_4.anchor = GridBagConstraints.EAST;
	gbc_lblNewLabel_4.insets = new Insets(0, 0, 5, 5);
	gbc_lblNewLabel_4.gridx = 0;
	gbc_lblNewLabel_4.gridy = 8;
	add(lblNewLabel_4, gbc_lblNewLabel_4);
	
	textField_7 = new JTextField();
	GridBagConstraints gbc_textField_7 = new GridBagConstraints();
	gbc_textField_7.insets = new Insets(0, 0, 5, 5);
	gbc_textField_7.fill = GridBagConstraints.HORIZONTAL;
	gbc_textField_7.gridx = 1;
	gbc_textField_7.gridy = 8;
	add(textField_7, gbc_textField_7);
	textField_7.setColumns(10);
	
	JButton btnNewButton = new JButton("등록");
	btnNewButton.addActionListener(new ActionListener() {
		public void actionPerformed(ActionEvent arg0) {
			
		}
	});
	GridBagConstraints gbc_btnNewButton = new GridBagConstraints();
	gbc_btnNewButton.insets = new Insets(0, 0, 5, 5);
	gbc_btnNewButton.gridx = 0;
	gbc_btnNewButton.gridy = 9;
	add(btnNewButton, gbc_btnNewButton);
	
	JButton btnNewButton_1 = new JButton("초기화");
	GridBagConstraints gbc_btnNewButton_1 = new GridBagConstraints();
	gbc_btnNewButton_1.insets = new Insets(0, 0, 5, 5);
	gbc_btnNewButton_1.gridx = 1;
	gbc_btnNewButton_1.gridy = 9;
	add(btnNewButton_1, gbc_btnNewButton_1);
	
	JButton button = new JButton("조회");
	GridBagConstraints gbc_button = new GridBagConstraints();
	gbc_button.insets = new Insets(0, 0, 5, 5);
	gbc_button.gridx = 2;
	gbc_button.gridy = 9;
	add(button, gbc_button);
	

}
}
